<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2020/8/19
  Time: 16:03
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath=null;
    basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    int port=request.getServerPort();

    if(port==80){
        basePath=request.getScheme()+"://"+request.getServerName()+path;

    }else{
        basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;

    }
    request.setAttribute("basePath", basePath);
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>供应商登录页面</title>
    <style>
        body{
            height: 100%;
            background-size: 100%,100%;
            background-image: url("${basePath}/img/bg.jpg");
            background-repeat: no-repeat;
            opacity: 0.9;
        }
        #dv1{
            margin: auto;
            margin-top: 100px;
            height: 500px;
            width: 300px;
            background-image: url("${basePath}/img/bg.jpg");
            opacity: 0.9;
            border-radius: 9px;
            border: 1px solid black;
        }
    </style>
</head>
<body>
<form action="SupplierLoServlet" method="post">
    <div id="dv1">
        <h1 style="margin-left: 80px">进销存系统</h1>
        <br>
        <br>
        <div>账号：<input style="width: 200px;height: 50px" type="text" name="sName"></div>
        <br>
        <div>密码：<input style="width: 200px;height: 50px" type="password"  name="sPwd"></div>
        <br>
        <input type="checkbox">记住密码
        <br>
        <div style="margin-right: 100px">没有账号，点这里<a href="suppRegister.jsp">注册</a></div>
        <br>
        <br>
        <input style="margin-left: 150px" type="submit" value="登录">
        <br>
    </div>

</form>
</body>
</html>
